From: Shivam Date: Sat, 21 Feb 2026 12:22:35 +0000 (+0530) Subject: appDisplay: Refresh folder preview when favorites change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~28^2~4^2^2~18 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=20bf8f053f3174210ae40112d5808fe67e270d5e;p=gnome-shell.git appDisplay: Refresh folder preview when favorites change Pinning an app from inside a folder did not refresh the folder preview. FolderIcon._sync() was only listening to folder GSettings changes, while pinning updates the favorites setting instead. As a result, _sync() was never called and the preview could show stale icons or remain visible when the folder became empty. Fix this by also connecting _sync() to AppFavorites::changed, ensuring the folder preview updates correctly when favorites are modified. Closes : https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9026 Part-of: (cherry picked from commit e9f24200e22b7a2e311224c4f16f7f0488ce6a11) --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 9e33cbd61..02ddc949b 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2302,6 +2302,9 @@ export const FolderIcon = GObject.registerClass({ this._folder.connectObject( 'changed', this._sync.bind(this), this); + const appFavorites = AppFavorites.getAppFavorites(); + appFavorites.connectObject( + 'changed', this._sync.bind(this), this); this._sync(); }